package com.ruoyi.data.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.data.domain.SysUserToken;
import com.ruoyi.data.domain.vo.SysUserTokenVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户tokenMapper接口
 *
 * @author lcx
 * @date 2023-11-29
 */
public interface SysUserTokenMapper extends BaseMapperPlus<SysUserTokenMapper, SysUserToken, SysUserTokenVo> {
    @DataPermission({
        @DataColumn(key = "userName", value = "user_id")
    })
    Page<SysUserTokenVo> sysUserTokenPageList(@Param("page") Page<SysUserToken> page, @Param("ew") Wrapper<SysUserToken> wrapper);


    @DataPermission({
        @DataColumn(key = "userName", value = "user_id")
    })
    List<SysUserTokenVo> selectVoList(@Param("ew") Wrapper<SysUserToken> wrapper);
}
